import cv2

cv2.namedWindow('newWin', cv2.WINDOW_AUTOSIZE)
cv2.imshow('newWin', 0)


key = cv2.waitKey(0)
if(key == 'q') :
    exit()


cv2.destroyWindow('newWin')